<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>Dynamic Table</title>

  <!--dynamic table-->
  <link th:href="@{/js/advanced-datatable/css/demo_page.css}" rel="stylesheet" />
  <link th:href="@{/js/advanced-datatable/css/demo_table.css}" rel="stylesheet" />
  <link rel="stylesheet" th:href="@{/js/data-tables/DT_bootstrap.css}" />

    <div th:include="commons :: comhead"></div>
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <div th:replace="commons :: #left"></div>
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div th:replace="commons :: #search"></div>
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                Dynamic Table
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">Dashboard</a>
                </li>
                <li>
                    <a href="#">Data Tables</a>
                </li>
                <li class="active"> Dynamic Table </li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
        <div class="row">
        <div class="col-sm-12">
        <section class="panel">
        <header class="panel-heading">
            Dynamic Table
            <span class="tools pull-right">
                <a href="javascript:;" class="fa fa-chevron-down"></a>
                <a href="javascript:;" class="fa fa-times"></a>
             </span>
        </header>
        <div class="panel-body">
        <div class="adv-table">
        <table  class="display table table-bordered table-striped" id="dynamic-table">
        <thead>
        <tr>
            <th>员工编号</th>
            <th>员工昵称</th>
            <th>真实名字</th>
            <th>员工密码</th>
            <th>邮箱</th>
            <th>电话</th>
            <th>地址</th>
            <th>上级名称</th>
            <th>入职时间</th>
            <th>薪水</th>
            <th>奖金</th>
            <th>所在部门</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr class="gradeX" th:each="userDto:${userDtoList}">
            <td th:text="${userDto.id}">XXX</td>
            <td th:text="${userDto.username}">XXX</td>
            <td th:text="${userDto.ename}">XXX</td>
            <td th:text="${userDto.password}">XXX</td>
            <td th:text="${userDto.email}">XXX</td>
            <td th:text="${userDto.tel}">XXX</td>
            <td th:text="${userDto.address}">XXX</td>
            <td th:text="${userDto.mgr}">XXX</td>
            <td th:text="${#dates.format(userDto.hiredate,'yyyy/MM/dd HH:mm')}">XXX</td>
            <td th:text="${userDto.sal}">XXX</td>
            <td th:text="${userDto.comm}">XXX</td>
            <td th:text="${userDto.dname}">XXX</td>
            <td><a th:href="@{/toBoss_edit(id=${userDto.id})}"><button class="btn btn-danger" type="button" >修改</button></a></td>
        </tr>
        </tfoot>
        </table>
        </div>
        </div>
        </section>
        </div>
        </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            2020 &copy; AdminEx by ThemeBucket </a>
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<div th:replace="commons :: js"></div>

<!--dynamic table-->
<script type="text/javascript" language="javascript" th:src="@{/js/advanced-datatable/js/jquery.dataTables.js}"></script>
<script type="text/javascript" th:src="@{/js/data-tables/DT_bootstrap.js}"></script>
<!--dynamic table initialization -->
<script th:src="@{/js/dynamic_table_init.js}"></script>

<!--common scripts for all pages-->

</body>
</html>
